from django.conf.urls import url
from . import views

urlpatterns=[
    url(r'^areas/$', views.AreasView.as_view(), name='areass'),
    url(r'^addresses/create/$', views.CreateAddressView.as_view(), name='createaddress'),
    url(r'^addresses/$', views.AddressView.as_view(), name='address'),
    url(r'^change_password/$', views.ChangePasswordView.as_view(), name='changepassword'),
    url(r'^addresses/(?P<address_id>\d+)/$', views.UpdateDestroyAddressView.as_view(), name='updateaddress'),
    url(r'^addresses/(?P<address_id>\d+)/title/$', views.UpdateTitleAddressView.as_view(), name='updatetitle'),
    url(r'^addresses/(?P<address_id>\d+)/default/$', views.DefaultAddressView.as_view(), name='defaultaddress'),

]